package com.edu.compile.datasource;

import com.edu.compile.DataSource;

import java.io.Serializable;

public class DefaultRedisDataSource extends DataSource implements Serializable {

    private String host;
    private Integer port;
    private String password;
    private Integer index;

    public DefaultRedisDataSource(String ni, Integer t) {
        super(ni, t);
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public static DefaultRedisDataSource init(String ni, Integer t) {
        return new DefaultRedisDataSource(ni, t);
    }

}
